package backpage.mapper;

import backpage.entity.po.CompoffApply;
import backpage.entity.vo.CompoffApplyVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  调休 接口
 * </p>
 *
 * @author 刘仁杰
 * @since 2025-04-19
 */
public interface CompoffApplyMapper extends BaseMapper<CompoffApply> {
    List<CompoffApplyVo> getListByEmployIdAndParam(
            @Param("employId") Integer employId,
            @Param("startTime") Date startTime,
            @Param("endTime") Date endTime,
            @Param("state") Integer state,
            @Param("approveId") Integer approveId
    );


    Integer getCompoffAndOvertimeApplySize(
            @Param("approveId") Integer approveId
            );



}
